package com.oa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oa.Response.ResponseData;
import com.oa.Response.Result;
import com.oa.entity.domain.User;
import com.oa.entity.dto.UserAndRole;
import com.oa.entity.vo.UserFormVo;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {
    ResponseData<Map<String,String>> login(UserFormVo userFormVo);
    Result<Map<String,String>> resginter(UserFormVo userFormVo);
    ResponseData logout();
    ResponseData<UserAndRole> getUserInfo();

    ResponseData<List<User>> getAllUser();

    ResponseData updateUser(Integer id,String name);

    ResponseData deleteUser(Integer id);

    ResponseData<List<User>> getUserBySomething(Object msg);
}
